unit uOknoRapTyg;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Mask, AdvSpin, ComCtrls, ExtCtrls, AdvEdit,
  AdvOfficeButtons;

type
  TFRapTyg = class(TForm)
    Panel1: TPanel;
    Button1: TButton;
    Button2: TButton;
    edOdDnia: TDateTimePicker;
    Label1: TLabel;
    edIleTyg: TAdvSpinEdit;
    Label2: TLabel;
    edWew: TAdvEdit;
    Label3: TLabel;
    cbNaleznosci: TAdvOfficeCheckBox;
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    Zamknij : boolean;
  end;

var
  FRapTyg: TFRapTyg;

implementation

{$R *.dfm}
uses Wilk;

procedure TFRapTyg.Button1Click(Sender: TObject);
begin
  Close;
end;

procedure TFRapTyg.Button2Click(Sender: TObject);
begin
  Zamknij := False;
  Close;
end;

procedure TFRapTyg.FormCreate(Sender: TObject);
begin
  Zamknij := True;
end;

procedure TFRapTyg.FormShow(Sender: TObject);
begin
  edOdDnia.Date := wilk.PoczMsc(Date);
end;

end.
